All Questions
Tagged with promisesasynchronous-programming
2 questions
2votes
2answers
1kviews
Why are Promises not "awaited" by default?
In the latest version of languages like TypeScript or ECMAScript you can use async/await constructs to write code that combines the clean structure of synchronous programming with the performance ...
99votes
1answer
64kviews
Is there really a fundamental difference between callbacks and Promises?
When doing single-threaded asynchronous programming, there are two main techniques that I'm familiar with. The most common one is using callbacks. That means passing to the function that acts ...